﻿package mortal.game.view.copy.sixBoss.view
{
    import com.mui.controls.*;
    import extend.language.*;
    import mortal.common.global.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class SixBossInfoSpr extends GSprite
    {
        private var _bossName:GTextFiled;
        private var _starArr:Array;

        public function SixBossInfoSpr()
        {
            this._starArr = [];
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._bossName = UIFactory.gTextField("", -4, 2, 111, 30, this, GlobalStyle.textFormatLv.setSize(15).center());
            return;
        }// end function

        public function setStarLevel(param1:int) : void
        {
            var _loc_2:int = 0;
            var _loc_4:GBitmap = null;
            switch(param1)
            {
                case 1:
                {
                    _loc_2 = 44 - 6;
                    break;
                }
                case 2:
                {
                    _loc_2 = 25 + 7;
                    break;
                }
                case 3:
                {
                    _loc_2 = 10 + 15;
                    break;
                }
                default:
                {
                    break;
                }
            }
            var _loc_3:int = 0;
            while (_loc_3 < param1)
            {
                
                _loc_4 = UIFactory.gBitmap(ImagesConst.HardIcon_S, _loc_2 + 17 * _loc_3, 26 + 8 - 5, this);
                this.pushUIToDisposeVec(_loc_4);
                _loc_3++;
            }
            return;
        }// end function

        public function set index(param1:int) : void
        {
            switch(param1)
            {
                case 0:
                {
                    this._bossName.text = Language.getString(40926);
                    break;
                }
                case 1:
                {
                    this._bossName.text = Language.getString(40927);
                    break;
                }
                case 2:
                {
                    this._bossName.text = Language.getString(40928);
                    break;
                }
                case 3:
                {
                    this._bossName.text = Language.getString(40929);
                    break;
                }
                case 4:
                {
                    this._bossName.text = Language.getString(40930);
                    break;
                }
                case 5:
                {
                    this._bossName.text = Language.getString(40931);
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl();
            this._bossName.dispose();
            this._bossName = null;
            this._starArr.length = 0;
            return;
        }// end function

    }
}
